/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.landmark;

import javax.swing.JOptionPane;
import javax.swing.SwingWorker;

/**
 *
 * @author computer
 */
public class ImagesFromFileSwingWorker extends SwingWorker<Boolean, Boolean> {

    @Override
    protected Boolean doInBackground() throws Exception {
        new ImagesFromFile().start();
        return true;
    }

    @Override
    protected void done() {
        JOptionPane.showMessageDialog(Util.getHelperBean().getDataPanel(), status);
        Util.getHelperBean().setTerminateCurrentProcess(false);
        Util.getHelperBean().getToggleButton().setEnabled(false);
        Util.getHelperBean().setProcessingDone(true);
    }
    String status = "Done Processing";
}
